package com.light.gulimall.product.vo;

import java.util.List;
import java.util.Objects;

public class AttrGroupVO {

    /**
     * 组名
     */
    private String attrGroupName;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 描述
     */
    private String descript;
    /**
     * 组图标
     */
    private String icon;
    /**
     * 所属分类id
     */
    private List<Long> catelogIds;


    public AttrGroupVO() {
    }

    public AttrGroupVO(String attrGroupName, Integer sort, String descript, String icon, List<Long> catelogIds) {
        this.attrGroupName = attrGroupName;
        this.sort = sort;
        this.descript = descript;
        this.icon = icon;
        this.catelogIds = catelogIds;
    }

    /**
     * 获取
     * @return attrGroupName
     */
    public String getAttrGroupName() {
        return attrGroupName;
    }

    /**
     * 设置
     * @param attrGroupName
     */
    public void setAttrGroupName(String attrGroupName) {
        this.attrGroupName = attrGroupName;
    }

    /**
     * 获取
     * @return sort
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * 设置
     * @param sort
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * 获取
     * @return descript
     */
    public String getDescript() {
        return descript;
    }

    /**
     * 设置
     * @param descript
     */
    public void setDescript(String descript) {
        this.descript = descript;
    }

    /**
     * 获取
     * @return icon
     */
    public String getIcon() {
        return icon;
    }

    /**
     * 设置
     * @param icon
     */
    public void setIcon(String icon) {
        this.icon = icon;
    }

    /**
     * 获取
     * @return catelogIds
     */
    public List<Long> getCatelogIds() {
        return catelogIds;
    }

    /**
     * 设置
     * @param catelogIds
     */
    public void setCatelogIds(List<Long> catelogIds) {
        this.catelogIds = catelogIds;
    }

    public String toString() {
        return "AttrGroupVO{attrGroupName = " + attrGroupName + ", sort = " + sort + ", descript = " + descript + ", icon = " + icon + ", catelogIds = " + catelogIds + "}";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AttrGroupVO vo = (AttrGroupVO) o;
        return Objects.equals(attrGroupName, vo.attrGroupName) && Objects.equals(sort, vo.sort) && Objects.equals(descript, vo.descript) && Objects.equals(icon, vo.icon) && Objects.equals(catelogIds, vo.catelogIds);
    }

    @Override
    public int hashCode() {
        return Objects.hash(attrGroupName, sort, descript, icon, catelogIds);
    }
}
